home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / Illustrator 6.0 SDK r1 Mac / AI Plugin Interface / AIRuntime.h < prev    next >
Text File  |  1995-12-21  |  2KB  |  108 lines

  1. /**
  2.  
  3.     AIRuntime.h
  4.     Copyright (c) 1995 Adobe Systems Incorporated.
  5.     All Rights Reserved
  6.  
  7.     Adobe Illustrator 6.0 Runtime Environment.
  8.  
  9.  **/
  10.  
  11. #ifndef __AIRuntime__
  12. #define __AIRuntime__
  13.  
  14.  
  15. /*******************************************************************************
  16.  **
  17.  **    Imports
  18.  **
  19.  **/
  20.  
  21. #include "AITypes.h"
  22. #include "AINameSpace.h"
  23. #include "AIStringPool.h"
  24.  
  25.  
  26. #if Macintosh
  27.     #ifdef __cplusplus
  28.     extern "C" {
  29.     #endif
  30.     
  31.     #if PRAGMA_ALIGN_SUPPORTED
  32.     #pragma options align=mac68k
  33.     #endif
  34.     
  35.     #if PRAGMA_IMPORT_SUPPORTED
  36.     #pragma import on
  37.     #endif
  38. #endif
  39.  
  40.  
  41. /*******************************************************************************
  42.  **
  43.  ** Constants
  44.  **
  45.  **/
  46.  
  47. #define kAIRuntimeSuite        "AI Runtime Suite"
  48. #define kAIRuntimeVersion    4
  49.  
  50. // Runtime notifiers
  51. #define kAIApplicationStartedNotifier        "AI Application Started Notifier"
  52.  
  53.  
  54. /*******************************************************************************
  55.  **
  56.  **    Types
  57.  **
  58.  **/
  59.  
  60. #if Macintosh
  61. typedef char *PlatformAppName;
  62. typedef char *PlatformAppVersion;
  63. typedef char *PlatformUserName;
  64. typedef char *PlatformUserOrganization;
  65. typedef char *PlatformUserSerialNumber;
  66. typedef FSSpec PlatformAppFileSpecification;
  67. #endif
  68.  
  69.  
  70. /*******************************************************************************
  71.  **
  72.  **    Suite
  73.  **
  74.  **/
  75.  
  76. typedef struct {
  77.  
  78.     MACPASCAL FXErr (*GetAppName) ( PlatformAppName *name );
  79.     MACPASCAL FXErr (*GetAppVersion) ( PlatformAppVersion *version );
  80.     MACPASCAL FXErr (*GetAppFileSpecification) ( PlatformAppFileSpecification *file );
  81.  
  82.     MACPASCAL FXErr (*GetUserName) ( PlatformUserName *name );
  83.     MACPASCAL FXErr (*GetUserOrganization) ( PlatformUserOrganization *organization );
  84.     MACPASCAL FXErr (*GetUserSerialNumber) ( PlatformUserSerialNumber *serialNumber );
  85.  
  86.     MACPASCAL FXErr (*GetAppNameSpace) ( NameSpace **space );
  87.     MACPASCAL FXErr (*GetAppStringPool) ( StringPool **pool );
  88.  
  89. } AIRuntimeSuite;
  90.  
  91.  
  92. #if Macintosh
  93.     #if PRAGMA_IMPORT_SUPPORTED
  94.     #pragma import off
  95.     #endif
  96.     
  97.     #if PRAGMA_ALIGN_SUPPORTED
  98.     #pragma options align=reset
  99.     #endif
  100.     
  101.     #ifdef __cplusplus
  102.     }
  103.     #endif
  104. #endif
  105.  
  106.  
  107. #endif
  108.